<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <title>首页</title>
    <link rel="stylesheet" type="text/css" th:href="@{/stage/css/semantic.min.css}">
    <link rel="stylesheet" th:href="@{/stage/css/index.css}">
    <link rel="stylesheet" th:href="@{/stage/css/iconfont.css}"/>
    <link rel="icon" type="image/x-icon" th:href="@{${webconfig.websiteicon}}" />
    <script type="text/javascript" th:src="@{/stage/js/jquery-1.10.2.js}"></script>
</head>

<body>

<!--导航-->
<footer th:replace="fontdesk/head::footer-fragment-head"></footer>
<!--中间-->

<div class="m-container m-padded-tb-big">
    <div class="ui container">
        <div class="ui stackable grid">
            <!--left-->
            <div class="eleven wide column">
                <!--header-->
                <div class="ui top attached segment">
                    <div class="ui middle aligned two column grid">
                        <div class="column">
                            <h3 class="ui teal header">博客</h3>
                        </div>
                        <div class="right aligned column">
                            共 <h3 class="ui orange header m-inline-block m-text-thin" th:text="${acnumber}">14</h3>篇
                        </div>
                    </div>
                </div>
                <!--中间列表-->
                <div class="ui attached  segment">
                    <div class="ui padded vertical segment m-padded-tb-large" th:each="wzconf:${wzconfig.list}">
                        <div class="ui middle aligned mobile reversed stackable grid">
                            <div class="five wide column">
                                <a th:href="@{'/blogarticle/'+${wzconf.id}}" target="_blank">
                                    <img th:src="@{${wzconf.articleimg}}" alt="" class="ui rounded image">
                                </a>
                            </div>
                            <div class="eleven wide column">
                                <h3 class="ui header"><a th:href="@{'/blogarticle/'+${wzconf.id}}" target="_blank" class="m-black" th:text="${wzconf.articletitle}">2021年度总结</a></h3>
                                <p class="m-text" th:text="|${wzconf.describel}......|">深圳打工人的一年......</p>
                                <div class="ui grid">
                                    <div class="row">
                                        <div class="eleven wide column">
                                            <div class="ui mini horizontal link list">
                                                <div class="item">
                                                    <img th:src="@{${webconfig.websiteadimg}}" alt="" class="ui avatar image">
                                                    <div class="content"><a href="#" class="header" th:text="${webconfig.websiteadname}">零三</a></div>
                                                </div>
                                                <div class="item">
                                                    <i class="iconfont icon-rili"></i><span th:text="${#dates.format(wzconf.createtime,'yyyy-MM-dd')}">2022-01-25</span>
                                                </div>
                                                <div class="item">
                                                    <i class="iconfont icon-chakanmian"></i> <span th:text="${wzconf.watchnumber}">48</span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="right aligned five wide column">
                                            <a href="#" target="_blank" class="ui teal basic label m-padded-tiny m-text-thin" th:text="${wzconf.artype.artypename}">web前端</a>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <!--footer-->
                <div class="ui bottom attached segment">
                    <div class="ui middle aligned two column grid">
                        <div class="column">
                            <th:block th:if="${wzconfig.pageNum>1}">
                                <a href="#" th:href="@{'/?pagenum='+${wzconfig.prePage}}" class="ui mini teal basic button">上一页</a>
                            </th:block>

                        </div>
                        <div class="right aligned column">
                            <th:block th:if="${wzconfig.nextPage>0}">
                                <a href="#" th:href="@{'/?pagenum='+${wzconfig.nextPage}}"  class="ui mini teal basic button">下一页</a>
                            </th:block>
                        </div>
                    </div>
                </div>

            </div>


            <!--右边top-->
            <div class="five wide column">
                <!--分类-->
                <div class="ui segments">
                    <div class="ui secondary segment">
                        <div class="ui two column grid">
                            <div class="column">
                                <i class="iconfont icon-fenlei"></i>分类
                            </div>
                            <div class="right aligned column">
                                <a th:href="@{'/blogtype/0'}">more <i style="font-size:2px" class="iconfont icon-youxiangjiantou"></i></a>
                            </div>
                        </div>
                    </div>

                    <div class="ui teal segment">
                        <div class="ui fluid vertical menu">
                            <a th:href="@{'/blogtype/'+${indexty.articletypeid}}" class="item" th:each="indexty:${indextype}" >
                                <span th:text="${indexty.artypename}">学习日志</span>
                                <div class="ui teal basic left pointing label" th:text="${indexty.typecount}">13</div>
                            </a>
                        </div>
                    </div>

                </div>

                <!--标签-->
                <div class="ui segments m-margin-top-large">
                    <div class="ui secondary segment">
                        <div class="ui two column grid">
                            <div class="column">
                                <i class="iconfont icon-biaoqian"></i>标签
                            </div>
                            <div class="right aligned column">
                                <a th:href="@{'/bloglable/0'}">more <i style="font-size:2px" class="iconfont icon-youxiangjiantou"></i></a>
                            </div>
                        </div>
                    </div>

                    <div class="ui teal segment">
                        <a th:href="@{'/bloglable/'+${inlab.articlelableid}}" class="ui teal basic left pointing label m-margin-tb-tiny" th:each="inlab:${indexlab}">
                            <span th:text="${inlab.arlablename}">方法</span>
                            <div class="detail" th:text="${inlab.lablecount}">23</div>
                        </a>
                    </div>
                </div>
                <!--最新推荐-->
                <div class="ui segments m-margin-top-large">
                    <div class="ui secondary segment ">
                        <i class="iconfont icon-rementuijian"></i>热门推荐
                    </div>
                    <div class="ui segment" th:each="hotrm:${hotrm}">
                        <a th:href="@{'/blogarticle/'+${hotrm.id}}" target="_blank" class="m-black m-text-thin" th:text="${hotrm.articletitle}">用户故事（User Story）</a>
                    </div>
                </div>

                <!--二维码-->
                <h4 class="ui horizontal divider header m-margin-top-large">扫码添加我</h4>
                <div class="ui centered card" style="width: 11em">
                    <img th:src="@{${webconfig.websiteqrcode}}" alt="" style="width:11em;" class="ui rounded image">
                </div>


            </div>
        </div>
    </div>



</div>



<!--底部-->
<footer  th:replace="fontdesk/foot::footer-fragment">

</footer>


<script>
    $(".m-mobile-show").click(function () {
        $(".m-item").toggleClass("m-mobile-hide");
    })
    $(function (){
        $("#alla a").eq(0).attr("class","active m-item item m-mobile-hide");
    })
</script>

</body>
</html>